﻿@model Inspinia_MVC5.Models.Borrow

@{
    ViewBag.Title = "删除借阅信息";
}

<div class="row wrapper border-bottom white-bg page-heading">
    <div class="col-sm-4">
        <h2>删除借阅信息</h2>
        <ol class="breadcrumb">
            @*<a href="~/Views/Borrows/Delete.cshtml">@*~/Views/Borrows/Delete.cshtml*@
            <li>
                @Html.ActionLink("返回", "Index")
            </li>
            <li class="active">
                <strong>删除信息</strong>
            </li>
        </ol>
    </div>
    <div class="col-sm-8">
        <div class="title-action">
			@Html.ActionLink("返回列表", "Index", null, new { @class = "btn btn-primary"})
        </div>
    </div>
</div>


<div class="wrapper wrapper-content animated fadeInRight">
    <div class="row">
        <div class="col-lg-12">
            <div class="ibox float-e-margins">
                <div class="ibox-title">
                    <h5>删除信息</h5>
                </div>
                <div class="ibox-content">
				<h4 class="text-danger">只有经过审核方可删除信息，删除信息会保存存档！</h4>
                <dl class="dl-horizontal">
                    <dt>
                        @Html.DisplayNameFor(model => model.Book.BookName)
                    </dt>

                    <dd>
                        @Html.DisplayFor(model => model.Book.BookName)
                    </dd>

                    <dt>
                        @{
                            if (Model.Role == 0)
                            {
                                <span>学生姓名</span>
                            }
                            else
                            {
                                <span>教师姓名</span>

                            }
                        }
                    </dt>

                    <dd>
                        @{
                            if (Model.Role == 0)
                            {
                                <span>@Model.Student.StuName</span>
                            }
                            else
                            {
                                <span>@Model.Teacher.TeaName</span>

                            }
                        }
                    </dd>

                    <dt>
                        @Html.DisplayNameFor(model => model.Role)
                    </dt>

                    <dd>
                        @{
                            if (Model.Role == 0)
                            {
                                <span>学生</span>
                            }
                            else
                            {
                                <span>教师</span>

                            }
                        }
                    </dd>

                    <dt>
                        @Html.DisplayNameFor(model => model.Status)
                    </dt>

                    <dd>
                        @{
                            if (Model.Status == 1)
                            {
                                <span>已借阅</span>
                            }
                            else if (Model.Status == 2)
                            {
                                <span>已续借</span>

                            }
                            else if (Model.Status == 3)
                            {
                                <span>已还书</span>

                            }
                        }
                    </dd>

                    <dt>
                        @Html.DisplayNameFor(model => model.JieYueDate)
                    </dt>

                    <dd>
                        @Html.DisplayFor(model => model.JieYueDate)
                    </dd>

                    <dt>
                        @Html.DisplayNameFor(model => model.YingHuanDate)
                    </dt>

                    <dd>
                        @Html.DisplayFor(model => model.YingHuanDate)
                    </dd>

                    <dt>
                        @Html.DisplayNameFor(model => model.ReturnDate)
                    </dt>

                    <dd>
                        @Html.DisplayFor(model => model.ReturnDate)
                    </dd>

                    <dt>
                        @Html.DisplayNameFor(model => model.OverDue)
                    </dt>

                    <dd>
                        @Html.DisplayFor(model => model.OverDue)
                    </dd>

                    <dt>
                        @Html.DisplayNameFor(model => model.XuJieDate)
                    </dt>

                    <dd>
                        @Html.DisplayFor(model => model.XuJieDate)
                    </dd>

                </dl>

    @using (Html.BeginForm()) {
        @Html.AntiForgeryToken()

        <div class="form-actions no-color">
            <input type="submit" value="删除" class="btn btn-primary" />
            @Html.ActionLink("返回列表", "Index", null, new { @class = "btn btn-white"})
        </div>
    }



                </div>
            </div>
        </div>
    </div>
 </div>


